package com.yuyou.tas.service.api.lesson.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.yuyou.tas.service.api.lesson.entity.BaseChapter;

@FeignClient(value = "tas-lesson-service")
@RequestMapping(value = "/baseChapterAPI")
public interface BaseChapterAPI {

    /**
     * 根据lectureUrl查出唯一BaseChapter
     * @param lectureUrl
     * @return
     */
	@RequestMapping(value = "/selectByLectureUrl",method = RequestMethod.POST)
	BaseChapter selectByLectureUrl(@RequestParam(value = "lectureUrl") String lectureUrl);
	
    /**
     * 根据courseUrl查出唯一BaseChapter
     * @param lectureUrl
     * @return
     */
	@RequestMapping(value = "/selectByCourseUrl",method = RequestMethod.POST)
	BaseChapter selectByCourseUrl(@RequestParam(value = "courseUrl") String courseUrl);
	
    /**
     * 根据lessonClassId和lectureUrl查出唯一BaseChapter
     * @param lessonClassId
     * @param lectureUrl
     * @return
     */
	@RequestMapping(value = "/selectByCla7LectureUrl",method = RequestMethod.POST)
	BaseChapter selectByCla7LectureUrl(@RequestParam(value = "lessonClassId") Long lessonClassId,@RequestParam(value = "lectureUrl") String lectureUrl);
	
    /**
     * 根据lessonClassId和courseUrl查出唯一BaseChapter
     * @param lessonClassId
     * @param courseUrl
     * @return
     */
	@RequestMapping(value = "/selectByCla7CourseUrl",method = RequestMethod.POST)
	BaseChapter selectByCla7CourseUrl(@RequestParam(value = "lessonClassId") Long lessonClassId,@RequestParam(value = "courseUrl") String courseUrl);
	
}
